import 'package:flutter/material.dart';
import 'package:honeypotflutter/publicBussine/bussine_colors.dart';
import 'package:honeypotflutter/publicBussine/bussine_font.dart';

class LoginTitle extends StatelessWidget {
  /// 标题
  final String title;

  /// 辅助标题
  final String? assistTitle;

  const LoginTitle({super.key, required this.title, this.assistTitle});

  @override
  Widget build(BuildContext context) {
    return Column(children: [
      Text(title,
          style: TextStyle(
            fontSize: MGFont.titleFont2,
            color: MGColors.text1Color,
            fontWeight: FontWeight.bold,
          )),
      SizedBox(height: 5),
      (assistTitle != null)
          ? Text(assistTitle ?? "",
              style: TextStyle(
                fontSize: MGFont.textFont2,
                color: MGColors.text2Color,
              ))
          : Container(),
    ], crossAxisAlignment: CrossAxisAlignment.start);
  }
}
